import {
	request
} from '@/utils/request'

//用户注册账号
export const apiRegister = (data) =>
	request({
		method: 'POST',
		url: `/applet/user/register`,
		data
	})

//微信登录
export const apiWxLogin = (data = {}) =>
	request({
		method: 'POST',
		url: `/applet/user/wxLogin`,
		data
	})

//检查用户是否绑定
export const apiCheckBind = () =>
	request({
		method: 'GET',
		url: `/applet/user/checkBind`,
	})

//获取用户个人信息
export const apiGetUserInfo = () =>
	request({
		method: 'GET',
		url: `/applet/user/info`,
	})
//更新用户个人信息
export const apiUserUpdate																																 = (data) => {
	request({
		method: 'PUT',
		url: `/applet/user/update`,
		data
	})
}